package abc.com.abc.view;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.media.tv.TvContentRating;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import abc.com.abc.R;

public class CourseView {
    private Activity mContext;
    private LayoutInflater minflater;
    private View mCourseView;
    public CourseView (Activity context){
        mContext = context;
        minflater = LayoutInflater.from(mContext);

    }//驾校页面
    private void createView(){
        init();
    }

    private void init() {

        mCourseView = minflater.inflate(R.layout.activity_course_view,null);

        mCourseView.setVisibility(View.VISIBLE);

    }
    public View getmCourseView() {
        if (mCourseView == null){
            createView();
        }

        return mCourseView;
    }
    public void  showView(){
        if (mCourseView == null){
            createView();
        }
        mCourseView.setVisibility(View.VISIBLE);
}}
